﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AccessorialChargesDetail.aspx.cs" Inherits="WMS6.Web.Billing.AccessorialChargesDetail" meta:resourcekey="Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>AccessorialChargesDetail</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/util.js" id="js" type="text/javascript"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>
    <script src="../Js/Verification.js" type="text/javascript"></script>
    <script type="text/javascript">
        //初始化页面
        window.onload = function() {
            initDetailPage();
        }
        
        function selectBillingObject()
        {
            var hdnType = document.getElementById("hdnType").value;
            var objectID= document.getElementById("ddlBillingObject").value;
            var rtnValue = null;
            if(objectID != null && objectID.toString().toUpperCase() == "VENDOR")
            {
                rtnValue = popModalWindow('../Configuration/VendorQuery.aspx?action=txtBillingObject', 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            }
            else if(objectID != null && objectID.toString().toUpperCase() == "CUSTOMER")
            {
                rtnValue = popModalWindow('../Configuration/CustomerQuery.aspx?action=txtBillingObject', 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            }
            else if(objectID != null && objectID.toString().toUpperCase() == "CARRIER")
            {
                rtnValue = popModalWindow('../Configuration/CarrierQuery.aspx?action=txtBillingObject', 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            }
            else if(objectID != null && objectID.toString().toUpperCase() == "BILLINGENTITY")
            {
                rtnValue = popModalWindow('../Configuration/BillingentityQuery.aspx?action=txtBillingObject', 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            }
            else if(objectID != null && objectID.toString().toUpperCase() == "OWNER" && hdnType.toString().toUpperCase() == "INVCHARGES")
            {
                rtnValue = popModalWindow('../Configuration/OwnerQuery.aspx?action=txtBillingObject', 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            }
 
            if (rtnValue != null && rtnValue.toString() != "") {
                document.getElementById("txtBillingObject").focus();
                document.getElementById("txtBillingObject").value = rtnValue;
            }
        
        }
        
        //弹出窗口选择费率代码
        function selectRate() {
            var rtnValue = popModalWindow('../Billing/RateQuery.aspx?action=txtRateID', 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if (rtnValue != null && rtnValue.toString() != "") {
                document.getElementById("txtRateID").focus();
                document.getElementById("txtRateID").value = rtnValue;
            }
        }
        //弹出窗口选择总账分配
        function selectGeneralLedger() {
            var rtnValue = popModalWindow('../Billing/GeneralLedgerQuery.aspx?action=txtGeneralLedgerID', 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if (rtnValue != null && rtnValue.toString() != "") {
                document.getElementById("txtGeneralLedgerID").focus();
                document.getElementById("txtGeneralLedgerID").value = rtnValue;
            }
        }
        //弹出窗口选择附加费
        function selectAccessorial() {
            var rtnValue = popModalWindow('../Billing/AccessorialQuery.aspx?action=txtAccessorialID', 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if (rtnValue != null && rtnValue.toString() != "") {
                document.getElementById("txtAccessorialID").focus();
                document.getElementById("txtAccessorialID").value = rtnValue;
            }
        }    
    </script>

</head>
<body>
    <form id="F9183" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblAreaDetail" runat="server" CssClass="label_header" 
                            Text="附加费分配明细" meta:resourcekey="lblAreaDetail"></asp:Label>
                    </td>
                    <td><asp:Button ID="btnCancel" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnCancel%>" 
                            AccessKey="c" Enabled="False" OnClick="btnCancel_Click" 
                            /></td>
                    <td><asp:Button ID="btnSave" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnSave%>" 
                            AccessKey="s"  Enabled="False" OnClick="btnSave_Click" 
                             /></td>
                </tr>
            </table>
        </div>
        <asp:UpdatePanel ID="up1" runat="server"><ContentTemplate>
        <div>
            <asp:Label ID="lblMsg" runat="server" CssClass="label_message" 
                meta:resourcekey="lblMsg"></asp:Label>
        </div>
        <div id="div_menu">
            <div style="float: left; width: 8px;">
                <div class="tabL" id="imgL1">
                </div>
            </div>
            <div class="tabLabelCont tabCur" id="div1">
                <asp:Label ID="one1" runat="server" class="hover" Text="附加费明细" 
                    meta:resourcekey="one1"></asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR" id="imgR1">
                </div>
            </div>
        </div>
        <div id="div_content">
            <div id="con_one_1" style="display: block;">
                <table width="720" style="display: block; margin-left: 10px; margin-top: 10px;">
                <tr>
                    <td width="180">
                        <asp:Label ID="lblAccessorialChargesID" runat="server" CssClass="label" 
                            Text="附加费编号" meta:resourcekey="lblAccessorialChargesID"></asp:Label><span
                            class="must_input">*</span>
                    </td>
                    <td width="180">
                        <asp:Label ID="lblCostType" runat="server" CssClass="label" Text="费用名称" 
                            meta:resourcekey="lblCostType"></asp:Label><span
                            class="must_input">*</span>
                    </td>
                    <td width="180"> 
                        <asp:Label ID="lblBillingObject" runat="server" CssClass="label" Text="对象类型" 
                            meta:resourcekey="lblBillingObject"></asp:Label><span
                            class="must_input">*</span>                         
                    </td>
                    <td width="180">
                         <asp:Label ID="lblBillingObjectID" runat="server" CssClass="label" Text="计费对象" 
                            meta:resourcekey="lblBillingObjectID"></asp:Label><span
                            class="must_input">*</span> 
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtAccessorialChargesID" runat="server" CssClass="textbox" 
                            MaxLength="30" meta:resourcekey="txtAccessorialChargesID" ></asp:TextBox>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlCostType" runat="server" CssClass="mediumselectbox" 
                            meta:resourcekey="ddlCostType"  AutoPostBack="True" 
                            onselectedindexchanged="ddlCostType_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlBillingObject" runat="server" 
                            CssClass="mediumselectbox" AutoPostBack="true" onselectedindexchanged="ddlBillingObject_SelectedIndexChanged" 
                            meta:resourcekey="ddlBillingObject"> 
                        </asp:DropDownList>
                    </td>
                   <td>
                        <asp:TextBox ID="txtBillingObject" runat="server" CssClass="textbox"
                            meta:resourcekey="txtBillingObject" ></asp:TextBox><img src="../Images/icon_find.gif" id="imgOwnerID" runat="server" alt="select one item" class="img" onclick="selectBillingObject();"/>
                    </td>
                </tr>
                <tr>
                    <td width="180">
                        <asp:Label ID="lblAccessorial" runat="server" CssClass="label" Text="费用明细" 
                            meta:resourcekey="lblAccessorial"></asp:Label>  
                    </td>
                    <td width="180">
                        <asp:Label ID="lblBillingRate" runat="server" CssClass="label" Text="费率" 
                            meta:resourcekey="lblBillingRate"></asp:Label>                           
                    </td>
                    <td width="180">
                        <asp:Label ID="lblBillingQty" runat="server" CssClass="label" Text="计费数量" 
                            meta:resourcekey="lblBillingQty"></asp:Label>
                    </td>
                    <td width="180">
                        <asp:Label ID="lblBillingAmount" runat="server" CssClass="label" Text="金额" 
                            meta:resourcekey="lblBillingAmount"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:DropDownList ID="ddlAccessorial" runat="server" CssClass="mediumselectbox" 
                            meta:resourcekey="ddlAccessorial" AutoPostBack="True" 
                            onselectedindexchanged="ddlAccessorial_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>
                    <td>
                        <asp:TextBox ID="txtBillingRate" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtBillingRate" 
                            ontextchanged="txtBillingRate_TextChanged" ></asp:TextBox>
                    </td>
                    <td>
                        <asp:TextBox ID="txtBillingQty" runat="server" CssClass="textbox"
                            meta:resourcekey="txtBillingQty" AutoPostBack="True" 
                            ontextchanged="txtBillingQty_TextChanged" ></asp:TextBox>
                    </td>
                   <td>
                        <asp:TextBox ID="txtBillingAmount" runat="server" CssClass="textbox"
                            meta:resourcekey="txtBillingAmount" ></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td width="180">
                        <asp:Label ID="lblBillingUnit" runat="server" CssClass="label" Text="计费单位" 
                            meta:resourcekey="lblBillingUnit"></asp:Label>
                    </td>
                    <td width="180">
                        <asp:Label ID="lblOrderID" runat="server" CssClass="label" Text="单据编号" 
                            meta:resourcekey="lblOrderID"></asp:Label>                         
                    </td>
                    <td width="180">
                        <asp:Label ID="lblSkuID" runat="server" CssClass="label" Text="货品" 
                            meta:resourcekey="lblSkuID"></asp:Label>
                    </td>
                    <td width="180">
                        <asp:Label ID="lblQty" runat="server" CssClass="label" Text="数量" 
                            meta:resourcekey="lblQty"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td width="180">
                        <asp:DropDownList ID="ddlBillingUnit" runat="server" CssClass="mediumselectbox" 
                            meta:resourcekey="ddlBillingUnit" AutoPostBack="True" 
                            onselectedindexchanged="ddlBillingUnit_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>
                    <td width="180">
                        <asp:TextBox ID="txtOrderID" runat="server" CssClass="textbox" Enabled="False" 
                            meta:resourcekey="txtOrderID" ></asp:TextBox>                      
                    </td>
                    <td width="180">
                        <asp:TextBox ID="txtSkuID" runat="server" CssClass="textbox" Enabled="False" 
                            meta:resourcekey="txtSkuID"></asp:TextBox>
                    </td>
                    <td width="180">
                        <asp:TextBox ID="txtQty" runat="server" CssClass="textbox" Enabled="False" 
                            meta:resourcekey="txtQty"></asp:TextBox> 
                    </td>
                </tr>
                <tr>
                    <td width="180">
                        <asp:Label ID="lblDueFromTo" runat="server" CssClass="label" Text="应收应付" 
                            meta:resourcekey="lblDueFromTo"></asp:Label>
                    </td>
                    <td width="180">
                        <asp:Label ID="lblLot" runat="server" CssClass="label" Text="批号" 
                            meta:resourcekey="lblLot"></asp:Label>                           
                    </td>
                    <td width="180">
                        <asp:Label ID="lblTotalWeight" runat="server" CssClass="label" Text="总重量" 
                            meta:resourcekey="lblTotalWeight"></asp:Label>
                    </td>
                    <td width="180">
                         <asp:Label ID="lblTotalVolume" runat="server" CssClass="label" Text="总体积" 
                            meta:resourcekey="lblTotalVolume"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:DropDownList ID="ddlDueFromTo" runat="server" CssClass="mediumselectbox" 
                            meta:resourcekey="ddlDueFromTo">
                        </asp:DropDownList>
                    </td>
                    <td>
                         <asp:TextBox ID="txtLot" runat="server" CssClass="textbox" Enabled="False" 
                            meta:resourcekey="txtLot"></asp:TextBox>
                    </td>
                    <td>
                        <asp:TextBox ID="txtTotalWeight" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtTotalWeight" AutoPostBack="True" 
                            ontextchanged="txtTotalWeight_TextChanged" ></asp:TextBox>
                    </td>
                    <td> 
                        <asp:TextBox ID="txtTotalVolume" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtTotalVolume" AutoPostBack="True" 
                            ontextchanged="txtTotalVolume_TextChanged"></asp:TextBox>                        
                    </td>
                </tr>
                <tr>
                    <td width="180">
                        <asp:Label ID="lblLineID" runat="server" CssClass="label" Text="行号" 
                            meta:resourcekey="lblLineID"></asp:Label>   
                    </td>
                    <td width="180"  colspan = "3">
                        <asp:Label ID="lblRemark" runat="server" CssClass="label" Text="备注" 
                            meta:resourcekey="lblRemark"></asp:Label>  
                    </td>
                    <td width="180">
                   
                    </td>
                    <td width="180">
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtLineID" runat="server" CssClass="textbox" Enabled="False" 
                            meta:resourcekey="txtLineID" ></asp:TextBox> 
                    </td>
                    <td colspan = "3">
                        <asp:TextBox ID="txtRemark" runat="server" CssClass="textbox"  Width = "468px"
                            meta:resourcekey="txtRemark"></asp:TextBox>   
                    </td>
                    <td>
                                          
                    </td>
                    <td>
                    </td>
                </tr>                     
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                </tr>
                </table>
            </div>
        </div>
        </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    <input type="hidden" id="hdnFrom" runat="server" />
    <input type="hidden" id="hdnTariffID" runat="server" />
    <input type="hidden" id="hdnFlag" runat="server" />
    <input type="hidden" id="hdnType" runat="server" />
    <input type="hidden" id="hdnOwenrID" runat="server" />
    </form>
</body>
</html>

